'use strict';

module.exports = app => {
    const { STRING, INTEGER, DATE, FLOAT } = app.Sequelize;

    const Holiday = app.model.define('holiday', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        date: DATE,
        timestamp: FLOAT,
        type: INTEGER,
        name: STRING(50),
    }, {
        paranoid: false,
        updatedAt: false,
        createdAt: false
    });

    return Holiday;
};